Example Program
Exact Searching
Exact string matching.
File "find_exact.cpp"
1 | |
2 | |
3 | |
4 | |
5 | |
6 |
This function prints the positions all occurrences of needle within haystack .
It uses the Algorithm specified by TAlgorithm that is passed as Specialization to Pattern.
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 |
The main function calls printAllOccs for different exact string matching algorithms.
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 |
See Also
SeqAn - Sequence Analysis Library - www.seqan.de